package com.qf.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Description: 公用常量
 * @Data: 2022/9/15 20:18
 * @Pacakge: com.qf.config
 * @ClassName: MyWebConfig
 * @Author: fan
 */
@Configuration
public class MyWebConfig implements WebMvcConfigurer {
    @Autowired
    MyIntercept myIntercept;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(myIntercept).addPathPatterns("/student/**")
                .excludePathPatterns("/user/**");
    }
}

